package sctl;

import java.math.BigDecimal;

public class Tuple implements Comparable<Tuple>
{
	private BigDecimal value;
	private BigDecimal probability;
	
	
	public Tuple
	(BigDecimal probability, BigDecimal value) 
	{
		super();
		this.value = value;
		this.probability = probability;
	}
	
	public BigDecimal getValue()
	{
		return value;
	}
	public void setValue(BigDecimal value) 
	{
		this.value = value;
	}
	public BigDecimal getProbability() 
	{
		return probability;
	}
	public void setProbability(BigDecimal probability) 
	{
		this.probability = probability;
	}
	
	public String print()
	{
		String output = "";
		output += "Value: " + value.toString() + " Probability: " + probability.toString() + "\n";
		return output;
	}

	@Override
	public int compareTo(Tuple otherTuple)
	{
		return this.getValue().compareTo(otherTuple.getValue());
	}	
}
